package com.gxa.web_admin.controller.zxy;


import com.gxa.common.vo.R2;
import com.gxa.modules.service.zxy.TCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Author: zxy
 * Date: 2022/01/05 9:29
 * Description:
 * Version: V1.0
 */
@Controller
@RequestMapping("/tc")
public class TCController {
    @Autowired
    private TCService service;

    @GetMapping("/queryPacList")
    @ResponseBody
    public R2 queryTCList(){
        return service.queryTCList();
    }

    @PostMapping("/queryOrder")
    @ResponseBody
    public R2 queryOrder(@RequestBody Map map){
        System.out.println(map);
        return service.queryOrder(map);
    }
}
